Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dynamic Cryptocurrency Selection and Display #46

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ivelinmegdanov
Copy link
Contributor

Introduces a feature to dynamically select and display cryptocurrency data (Bitcoin and Ethereum) on the page.

  • Added a toggle switch for selecting Bitcoin and Ethereum.
  • Added event listeners for the cryptocurrency toggle switch.
  • Updates the label text based on the selected cryptocurrency.
  • Fetches and displays current price data immediately upon changing cryptocurrency type.
  • Modified data fetching logic to dynamically handle the selected cryptocurrency type.
  • Ensured the /now endpoint is called whenever the cryptocurrency type is change
  • Renamed bitcoin.js to crypto.js

!!! TODO: Inside background.js we need to update the deployed API (maybe we can use a config file to store the base URL)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant